+Sat Feb 23 03:10:20 2002 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreeview.c (gtk_tree_view_key_press): honor min_width and
+ max_width while resizing columns (pointed out by Jorn Baayen)
+
Fri Feb 22 19:17:46 2002 Owen Taylor <otaylor@redhat.com>
Patch from Matthias Clasen (#54488)
+Sat Feb 23 03:10:20 2002 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreeview.c (gtk_tree_view_key_press): honor min_width and
+ max_width while resizing columns (pointed out by Jorn Baayen)
+
Fri Feb 22 19:17:46 2002 Owen Taylor <otaylor@redhat.com>
Patch from Matthias Clasen (#54488)
+Sat Feb 23 03:10:20 2002 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreeview.c (gtk_tree_view_key_press): honor min_width and
+ max_width while resizing columns (pointed out by Jorn Baayen)
+
Fri Feb 22 19:17:46 2002 Owen Taylor <otaylor@redhat.com>
Patch from Matthias Clasen (#54488)
+Sat Feb 23 03:10:20 2002 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreeview.c (gtk_tree_view_key_press): honor min_width and
+ max_width while resizing columns (pointed out by Jorn Baayen)
+
Fri Feb 22 19:17:46 2002 Owen Taylor <otaylor@redhat.com>
Patch from Matthias Clasen (#54488)
+Sat Feb 23 03:10:20 2002 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreeview.c (gtk_tree_view_key_press): honor min_width and
+ max_width while resizing columns (pointed out by Jorn Baayen)
+
Fri Feb 22 19:17:46 2002 Owen Taylor <otaylor@redhat.com>
Patch from Matthias Clasen (#54488)
+Sat Feb 23 03:10:20 2002 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreeview.c (gtk_tree_view_key_press): honor min_width and
+ max_width while resizing columns (pointed out by Jorn Baayen)
+
Fri Feb 22 19:17:46 2002 Owen Taylor <otaylor@redhat.com>
Patch from Matthias Clasen (#54488)
+Sat Feb 23 03:10:20 2002 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreeview.c (gtk_tree_view_key_press): honor min_width and
+ max_width while resizing columns (pointed out by Jorn Baayen)
+
Fri Feb 22 19:17:46 2002 Owen Taylor <otaylor@redhat.com>
Patch from Matthias Clasen (#54488)
column->resized_width -= 2;
if (column->resized_width < 0)
column->resized_width = 0;
- column->resized_width = MAX (column->min_width,
- column->resized_width);
+
+ if (column->min_width == -1)
+ column->resized_width = MAX (column->button->requisition.width, column->resized_width);
+ else
+ column->resized_width = MAX (column->min_width, column->resized_width);
+
+ if (column->max_width != -1)
+ column->resized_width = MIN (column->resized_width, column->max_width);
+
column->use_resized_width = TRUE;
gtk_widget_queue_resize (widget);
return TRUE;
column->resized_width = MAX (column->resized_width,
column->width);
column->resized_width += 2;
+
+ if (column->max_width != -1)
+ column->resized_width = MIN (column->resized_width, column->max_width);
+
column->use_resized_width = TRUE;
gtk_widget_queue_resize (widget);
return TRUE;